
<?php
include_once '../admin/config.php'; 
$conn = db();

$result = $_REQUEST["table-3"];
$i = 1;
foreach($result as $value) {
$result = pg_query($conn, "UPDATE catroid_typ SET sortierung = '$i' WHERE id = '$value'");
$i++;
}

echo "Sortierung erfolgreich!";

?>